package com.winit.schedule.job.tracker.event;

import java.util.List;

import com.winit.schedule.core.event.AbstractEvent;
import com.winit.schedule.core.repository.entity.QuartzLogEntity;
import com.winit.schedule.core.repository.entity.QuartzSchedulerEntity;

public class QuartzEvent extends AbstractEvent<QuartzEventType> {

    private List<QuartzSchedulerEntity> schedulerEntities;

    private QuartzLogEntity             logEntity;

    private String                      taskTrackerUuid;

    public QuartzEvent(QuartzEventType type, List<QuartzSchedulerEntity> schedulerEntities){
        super(type);
        this.schedulerEntities = schedulerEntities;
    }

    public QuartzEvent(QuartzEventType type, QuartzLogEntity logEntity){
        super(type);
        this.logEntity = logEntity;
    }

    public QuartzEvent(QuartzEventType type, String taskTrackerUuid){
        super(type);
        this.taskTrackerUuid = taskTrackerUuid;
    }

    public String getTaskTrackerUuid() {
        return taskTrackerUuid;
    }

    public List<QuartzSchedulerEntity> getSchedulerEntities() {
        return schedulerEntities;
    }

    public QuartzLogEntity getLogEntity() {
        return logEntity;
    }

}
